--- xf86-video-intel-2.99.916.org/src/uxa/intel_driver.c
+++ xf86-video-intel-2.99.916/src/uxa/intel_driver.c
@@ -1188,7 +1188,9 @@
 		intel->dri3 = DRI_NONE;
 	}
 
+#if HAVE_DRI3
 	intel_sync_close(screen);
+#endif
 
 	xf86GARTCloseScreen(scrn->scrnIndex);
 
